package top.yuzt.animalserver.mapper;

import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import top.yuzt.animalserver.entity.Animal;
import top.yuzt.animalserver.entity.Medical;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuzt
 * @since 2024-05-17
 */
@Mapper
public interface MedicalMapper extends BaseMapper<Medical> {
    @Select("UPDATE medical SET doctor_id = Null WHERE id =  #{userid}")
    List<Medical> setNull(Integer userid);

}
